.card {
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.word-list {
    max-height: 600px;
    overflow-y: auto;
}

.play-audio {
    padding: 0.25rem 0.5rem;
    margin-left: 0.5rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
    
    .word-list {
        max-height: 400px;
    }
    
    .list-group-item {
        padding: 0.75rem;
    }
}

/* 添加动画效果 */
.card {
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-2px);
}

.play-audio:active {
    transform: scale(0.95);
}

/* 加载遮罩样式 */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
}

.loading-spinner i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* 布局样式 */
body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    padding-bottom: 60px;
}

/* PC端侧边栏样式 */
.sidebar {
    position: fixed;
    left: 0;
    top: 60px;
    bottom: 0;
    width: 200px;
    padding: 20px;
    background-color: #f8f9fa;
    border-right: 1px solid #dee2e6;
    overflow-y: auto;
}

.sidebar .nav-link {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    padding: 10px 15px;
}

.sidebar .nav-link i {
    margin-right: 10px;
}

/* 主内容区域样式 */
.main-content {
    margin-top: 40px;
    margin-left: 200px; /* 与侧边栏宽度相同 */
    padding: 20px;
    min-height: calc(100vh - 56px); /* 减去导航栏高度 */
}

/* 移动端底部导航样式 */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding: 10px;
    z-index: 1000;
}

.mobile-nav .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
}

.mobile-nav .nav-link i {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.mobile-nav .nav-link span {
    font-size: 0.8rem;
}

/* 响应式调整 */
@media (max-width: 767.98px) {
    .navbar {
        padding: 0 15px;
    }

    .navbar-brand {
        font-size: 1.3rem;
    }

    .navbar-brand i {
        font-size: 1.5rem;
    }
    
    .main-content {
        margin-left: 0;
        padding: 15px;
        min-height: calc(100vh - 130px);
    }
    
    .card {
        margin-bottom: 15px;
    }
}

/* 活动状态样式 */
.nav-link.active {
    background-color: #0d6efd !important;
    color: white !important;
}

/* 顶部导航栏高度 */
.navbar {
    height: 60px;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    padding: 0 20px;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 500;
    color: #2c3e50 !important;
    padding: 0;
    height: 60px;
    display: flex;
    align-items: center;
}

.navbar-brand i {
    color: #3498db;
    font-size: 1.8rem;
}

.navbar-brand span {
    background: linear-gradient(45deg, #3498db, #2980b9);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* 主体内容区域 */
.container-fluid {
    padding-top: 0px;
}

/* 卡片标题样式 */
.card-title {
    margin-top: 0; /* 确保标题没有上边距 */
    padding-top: 0; /* 确保标题没有上内边距 */
} 

/* 积分显示样式 */
.points-display {
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.1), rgba(255, 165, 0, 0.1));
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.points-display:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.points-display i {
    color: #ffd700;
    margin-right: 8px;
    font-size: 1.2em;
}

.points-value {
    color: #f39c12;
    font-size: 1.2em;
    font-weight: 700;
    min-width: 30px;
    text-align: right;
}

.points-label {
    color: #666;
    font-size: 0.9em;
    font-weight: 500;
}

/* 响应式调整 */
@media (max-width: 767.98px) {
    .points-display {
        padding: 6px 12px;
    }
    
    .points-value {
        font-size: 1.1em;
    }
    
    .points-label {
        font-size: 0.8em;
    }
}

/* 积分动画 */
.points-animation {
    font-size: 2rem;
    color: #f39c12;
    font-weight: bold;
    animation: pointsPopup 0.5s ease-out;
}

@keyframes pointsPopup {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 积分历史样式 */
.list-group-item {
    border-left: 3px solid #3498db;
    margin-bottom: 5px;
}

.list-group-item:hover {
    background-color: #f8f9fa;
}